﻿using System;
using System.Web.DynamicData;
using System.Web.UI.WebControls;

namespace NotAClue.Web.DynamicData
{
    public interface ICascadingControl
    {
        MetaForeignKeyColumn ChildColumn { get; }
        ListControl ListControl { get; }
        MetaForeignKeyColumn ParentColumn { get; }
        ICascadingControl ParentControl { get; set; }
        String SelectedValue { get; }

        void RaiseSelectedIndexChanged(String value, String text);
        event SelectionChangedEventHandler SelectionChanged;
    }
}
